package com.itheima.homework04;

public class Test06 {
    public static void main(String[] args) {
        int[] arr = {68, 27, 95, 88, 171, 996, 51, 210};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            //定义一个变量存放个位
            int ge = arr[i] % 10;
            //定义一个变量存放十位
            int shi = arr[i] / 10 % 10;
            //判断是否成立 并求和
            if(ge !=7&&shi!=7&&arr[i]%2==0){
                sum += arr[i];
            }
        }
        System.out.println(sum);
    }
}
